﻿using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp1
{
    class Program
    {
        static void Main(string[] args)
        {
            Stack stack = new Stack();
            stack.Push("1号盘子");
            stack.Push("2号盘子");
            stack.Push("3号盘子");
            stack.Push("4号盘子");
            Console.WriteLine("取出盘子");
            while (stack.Count != 0)
            {
                var i = stack.Peek();//取出不删除 
                var f= stack.Pop();//取出并删除
                Console.WriteLine(f);
            }
        }
    }
}
